#pragma once

#include "Vectors.h"

class ServiceProvider;

typedef std::vector<PlayerVec>			PlayerRoleMap;
typedef PlayerRoleMap::iterator			PlayerRoleMapIt;
typedef PlayerRoleMap::const_iterator	PlayerRoleMapCit;

class TeamAI
{
public:
	TeamAI(ServiceProvider* const i_sp, Team* const i_team);
	void MakeFormation(const bool i_doNotPrompt);
	void TryBuy(const bool i_doNotPrompt);
	void TrySell(const bool i_doNotPrompt);

private:
	ServiceProvider* m_sp;
	Team* m_team;
	PlayerVec m_brokenPlayers;
	PlayerVec m_nonBrokenPlayers;
	PlayerRoleMap m_map;

	int	 TryCheat(const bool i_doNotPrompt);
};
